package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QualificationMapper;
import com.ruoyi.system.domain.Qualification;
import com.ruoyi.system.service.IQualificationService;

/**
 * 职业资格Service业务层处理
 * 
 * @author WEI&WU
 * @date 2024-05-25
 */
@Service
public class QualificationServiceImpl implements IQualificationService 
{
    @Autowired
    private QualificationMapper qualificationMapper;

    /**
     * 查询职业资格
     * 
     * @param certificateId 职业资格主键
     * @return 职业资格
     */
    @Override
    public Qualification selectQualificationByCertificateId(String certificateId)
    {
        return qualificationMapper.selectQualificationByCertificateId(certificateId);
    }

    /**
     * 查询职业资格列表
     * 
     * @param qualification 职业资格
     * @return 职业资格
     */
    @Override
    public List<Qualification> selectQualificationList(Qualification qualification)
    {
        return qualificationMapper.selectQualificationList(qualification);
    }

    /**
     * 新增职业资格
     * 
     * @param qualification 职业资格
     * @return 结果
     */
    @Override
    public int insertQualification(Qualification qualification)
    {
        return qualificationMapper.insertQualification(qualification);
    }

    /**
     * 修改职业资格
     * 
     * @param qualification 职业资格
     * @return 结果
     */
    @Override
    public int updateQualification(Qualification qualification)
    {
        return qualificationMapper.updateQualification(qualification);
    }

    /**
     * 批量删除职业资格
     * 
     * @param certificateIds 需要删除的职业资格主键
     * @return 结果
     */
    @Override
    public int deleteQualificationByCertificateIds(String[] certificateIds)
    {
        return qualificationMapper.deleteQualificationByCertificateIds(certificateIds);
    }

    /**
     * 删除职业资格信息
     * 
     * @param certificateId 职业资格主键
     * @return 结果
     */
    @Override
    public int deleteQualificationByCertificateId(String certificateId)
    {
        return qualificationMapper.deleteQualificationByCertificateId(certificateId);
    }
}
